package com.chinawlx.wlxteacher.utils;

import com.chinawlx.wlxteacher.base.WLXApplication;
import com.chinawlx.wlxteacher.wlx_schedule;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import okhttp3.Cookie;

/**
 * 作者:吴名
 * 时间:16/8/1.
 * 描述:定义一些常量
 */
public class WLXConstant {
    /**
     * 服务器地址
     */
//    public static final String BASE_URL = "http://192.168.0.107:8001";

    public static final String BASE_URL = "http://192.168.1.100:8100";

    /**
     * 登录时,获取验证码接口,android
     */
    public static final String CAPTCHA_URL = "/client/android/teacher/v1/passport/code";

    /**
     * 登陆接口URL
     */
    public static final String LOGIN_URL = "/client/android/teacher/v1/passport/login";
    /**
     * APi 秘钥
     */
    public static final String APISECRET = "chinawlx9988cc9d8816bbaa20160501";
    /**
     * 启动屏时间
     */
    public static final int SPLASH_TIME = 1000;

    /**
     * sp存储是否app安装后第一次启动的key
     */
    public static final String KEY_IS_FIRST_LAUCH = "key_is_first_lauch";

    /**
     * 登录账号的user_id
     */
    public static String USER_ID;

    /**
     * 存储请求网络时的Cookie
     */
    public static List<Cookie> cookieStore = new ArrayList<>();

    /**
     * wlx_auth表的version字段
     */
    public static final int VERSION = 1;

    /**
     * 是否登录成功
     * 0:失败  1:成功
     */
    public static int IS_ACTIVE = 0;

    /**
     * 未来星官网地址
     * 前缀必须加上http,否则Uri格式不对,无法识别
     */
    public static final String WLX_WEBSITE = "http://www.chinawlx.com";
    /**
     * 获取老师已点评被家长回复的作业列表
     */
    public static final String COMMENT_LIST = "/client/android/teacher/v1/homework/commentlist/";

    /**
     * 获取班级作业列表
     */
    public static final String CLASS_HOMEWORK = "/client/android/teacher/v1/homework/list/";
    /**
     * 获取班级列表
     */
    public static final String CLAZZ_LIST_URL = "/client/teacher/grade/list";
    /**
     * 班级列表的grade_id
     */
    public static String GRADE_ID;
    /**
     * 班级名称
     */
    public static String GRADE_TITLE;
    /**
     * 课程管理
     */
    public static final String COURSE_MANAGE = "/client/android/teacher/v1/schedule/grade/";
    /**
     * 作业列表的homework_id
     */
    public static String HOMEWORK_ID;
    /**
     * 单个作业返回列表
     */
    public static final String HOMEWORK_COMMENT =
            "/client/android/teacher/v1/homework/comment/reply/";
    /**
     * 单个作业列表homework_comment_id
     */
    public static String HOMEWORK_COMMENT_ID;
    /**
     * 获取班级学生
     */
    public static final String STUDENT_LIST = "/client/android/teacher/v1/studentlist";
    /**
     * 获取班级动态
     */
    public static final String CLAZZ_DYNAMIC = "/client/android/teacher/v1/gradenotice/list/";
    /**
     * 获取课次统计
     */
    public static final String LESSON_STATISTICS =
            "/client/android/teacher/v1/statistics/schedule/teachermonth";
    /**
     * 更改用户昵称和QQ号
     */
    public static final String CHANGE_NICKNAME_AND_QQ =
            "/client/android/teacher/v1/user/updateuserfield";

    /**
     * 教师端添加评论
     */
    public static final String COMMENT_TEACHER_ADD =
            "/client/android/teacher/v1/homework/comment/add";
    /**
     * 登出账号
     */
    public static final String LOG_OFF = "/client/android/teacher/v1/logoff";
    /**
     * 关于未来星
     */
    public static final String ABOUT_FUTURESTAR_URL = "/client/android/teacher/v1/serve/about";
    /**
     * 点名
     */
    public static final String CALL_ROLL = "/client/android/teacher/v1/study/";
    /**
     * 上传老师的头像
     */
    public static final String UPDATE_TEACHER_AVATAR = "/client/android/teacher/v1/upload/avatar";

    /**
     * 举报不良信息
     */
    public static final String REPORT_CREATE = "/client/android/teacher/v1/report/create";

    /**
     * 课程表url
     */
    public static final String SCHEDULE_STUDENTGRADE_ALL =
            "/client/android/teacher/v1/schedule/all";

    /**
     * 课程表中按天分组的课程信息
     */
    public static Map<Long, ArrayList<wlx_schedule>> mSchedulehashMap = new HashMap<>();

    /**
     * 点击课程表某一天的时间戳转换的天数(默认是今天)
     */
    public static long date = Calendar.getInstance().getTimeInMillis() / (60 * 60 * 24 * 1000);

    /**
     * 今天的日期
     */
    public static final Calendar TODAY_CALENDAR = Calendar.getInstance();


    /**
     * 4种class_type_code
     * 美术,舞蹈,音乐,跆拳道
     */
    public static final String art = "art";
    public static final String dance = "dance";
    public static final String music = "music";
    public static final String kungfu = "kungfu";
    /**
     * 班级调课
     */
    public static final String ADJUST_LESSON = "/client/android/teacher/v1/schedule/change/adjust/";

    /**
     * 获取单个的学生信息
     */
    public static final String STUDENT_INFO = "/client/android/teacher/v1/student/";


    /**
     * 学生详情-时间线
     */
    public static final String TIMELINE_URL = "/client/android/teacher/v1/timeline/";


    /**
     * 缓存存储的目录
     */
    public static String ExternalCacheDir = WLXApplication.myApplication.getExternalCacheDir()
            .getAbsolutePath();

    /**
     * 老师请假
     */
    public static final String TEACHER_LEAVE = "/client/android/teacher/v1/schedule/change/leave/";

    /**
     * 停课接口
     */
    public static final String SCHEDULE_CHANGE_STOP =
            "/client/android/teacher/v1/schedule/change/stop/";

    /**
     * 加课接口
     */
    public static final String SCHEDULE_CHANGE_addition =
            "/client/android/teacher/v1/schedule/change/addition/";

    /**
     * 提交课程的文本信息
     */
    public static final String SCHEDULE_SETCONTENT =
            "/client/android/teacher/v1/schedule/setcontent/";

    /**
     * 上传图片
     */
    public static final String UPLOAD_IMAGE = "/client/android/teacher/v1/upload/image";

    /**
     * 交作业时-图片路径
     */
    public static ArrayList<String> IMAGES_PATH = new ArrayList<>();

    /**
     * 交作业时录制合成后视频的路径
     */
    public static String VIDEO_PATH = "";

    /**
     * 上传视频到服务器前,服务器返回的resource_id
     */
    public static String RESOURCE_ID = "";

    /**
     * (交作业时)录制的视频时长
     */
    public static String VIDEO_DURATION = "";

    /**
     * 选中某个孩子-某个班级的id
     */
    public static String grade_id = "22";


    /**
     * 学生id(也就是孩子id)
     */
    public static String student_id = "4";

    /**
     * 上传视频的地址
     */
    public static final String UPLOAD_VIDEO = "/client/android/teacher/v1/upload/video";

    /**
     * 不同activity之间,通过intent传递单张图片的路径的key
     */
    public static final String IMAGE_PATH = "image_path";

    /**
     * 家庭作业添加
     */
    public static final String HOMEWORK_ADD = "/client/android/teacher/v1/homework/add";
    /**
     * 结课
     */
    public static final String FINISHED = "/client/android/teacher/v1/schedule/finished/";
    /**
     * 单个课程请求
     */
    public static final String SINGLE_COURSE = "/client/android/teacher/v1/schedule/detail/";
    /**
     * 获取教师某个课程表课次的差评列表
     */
    public static final String BAD_LIST = "/client/android/teacher/v1/schedule/score/";
    /**
     * 获取课程改变信息
     */
    public static final String SCHEDULE_CHANGE = "/client/android/teacher/v1/schedulechange/info/";


}
